var vkcontrolsId = 'feefdohfghkfncgmnlfiicaoegecbgfa';

chrome.extension.onRequestExternal.addListener(function(paused, sender, sendResponse) {
	if (sender.id != vkcontrolsId) return;
	chrome.browserAction.setIcon({
		path: paused?'play.png':'pause.png'
	});
});

chrome.browserAction.onClicked.addListener(function(tab) {
	chrome.extension.sendRequest(vkcontrolsId, "chrome.extension.getBackgroundPage().bg.playpause()");
});